/*
 * TestEncode.java
 * 
 * author: The MomberBan Team
 *    date: 21.09.2008
 * 
 * 
 */
package at.momberban.game.me.tests;

import at.momberban.game.me.Event;

/**
 * @author patchinsky
 *
 */
public class TestEncode {
    
    /**
     * test some encoding
     * @param args
     */
    public static void main(String[] args) {    
        
        String encoded = Event.encode(Event.GAME_END, null);
        System.out.println("encoded length: " + encoded.length());
        
        Event dec = Event.decode(encoded);
        System.out.println("decoded length: " + dec.getEncoded().length());
        
        if (Event.GAME_END == dec.getID()) {
            System.out.println("all good!!!");
        }
        
        
    }

}
